/* 初始化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
@font-face {
  font-family: electronicFont;
  src: url(../font/DS-DIGIT.TTF);
}
body {
  background: url(../images/bg.jpg) no-repeat top center;
  background-size: cover;
}

/* 头部区域样式 */
header {
  position: relative;
  background: url(../images/head_bg.png) no-repeat;
  height: 1.25rem;
  background-size: 100% 100%;
  h1 {
    font-size: 0.475rem;
    line-height: 1rem;
    color: #fff;
    text-align: center;
  }
  .currentTime {
    position: absolute;
    right: 0.375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 0.9375rem;
    font-size: 0.25rem;
    top: 0;
  }
}
/* 主体盒子 */
.mainBox {
  display: flex;
  min-width: 1024px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.125rem 0.125rem 0 0.125rem;
  .column {
    flex: 4;
    &:nth-child(2) {
      flex: 5;
      margin: 0 0.125rem 0.1875rem;
    }
    .panel {
      height: 3.875rem;
      border: 1px solid rgba(25, 186, 139, 0.17);
      background: url(../images/line.png) no-repeat;
      background-color: rgba(255, 255, 255, 0.03);
      background-size: 100% 100%;
      padding: 0 0.1875rem 0.5rem 0.1875rem;
      margin-bottom: 0.1875rem;
      position: relative;
      &::before {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        box-sizing: border-box;
        top: 0;
        left: 0;
        border-top: 2px solid rgba(0, 255, 255, 0.575);
        border-left: 2px solid rgba(0, 255, 255, 0.575);
      }
      &::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        box-sizing: border-box;
        top: 0;
        right: 0;
        border-top: 2px solid rgba(0, 255, 255, 0.575);
        border-right: 2px solid rgba(0, 255, 255, 0.575);
      }
      .panel-footer {
        position: absolute;
        right: 0;
        left: 0;
        bottom: 0;
        height: 10px;
        .footer-left {
          position: absolute;
          width: 10px;
          height: 10px;
          top: 0;
          left: 0;
          border-bottom: 2px solid rgba(0, 255, 255, 0.575);
          border-left: 2px solid rgba(0, 255, 255, 0.575);
        }
        .footer-right {
          position: absolute;
          width: 10px;
          height: 10px;
          top: 0;
          right: 0;
          border-bottom: 2px solid rgba(0, 255, 255, 0.575);
          border-right: 2px solid rgba(0, 255, 255, 0.575);
        }
      }
      h2 {
        height: 0.6rem;
        color: #fff;
        line-height: 0.6rem;
        font-size: 0.25rem;
        text-align: center;
        font-weight: 400;
        position: relative;
        .switch {
          position: absolute;
          right: 0.3125rem;
          top: 0.1875rem;
          a {
            cursor: pointer;
            margin-left: 0.125rem;
            font-size: 0.125rem;
            color: #fff;
            &:hover {
              color: #629ea3;
            }
            &:focus {
              color: '#02a6b5';
            }
          }
        }
      }
      .chart {
        height: 3rem;
      }
    }
  }
  /* 数据模块 */
  .web-data {
    background-color: rgba(101, 132, 226, 0.1);
    padding: 0.1875rem;
    .data-num {
      border: 1px solid rgba(25, 186, 130, 0.17);
      position: relative;
      ul {
        display: flex;
        li {
          flex: 1;
          height: 1rem;
          font-size: 0.875rem;
          color: #ffeb7b;
          text-align: center;
          font-family: electronicFont;
          position: relative;
          &:nth-child(1)::after {
            content: '';
            position: absolute;
            width: 1px;
            height: 50%;
            top: 25%;
            right: 0;
            background-color: rgba(255, 255, 255, 0.2);
          }
        }
      }
      &::before {
        content: '';
        position: absolute;
        width: 30px;
        height: 10px;
        box-sizing: border-box;
        top: 0;
        left: 0;
        border-top: 2px solid #02a6b5;
        border-left: 2px solid #02a6b5;
      }
      &::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 10px;
        box-sizing: border-box;
        bottom: 0;
        right: 0;
        border-bottom: 2px solid rgba(0, 255, 255, 0.575);
        border-right: 2px solid rgba(0, 255, 255, 0.575);
      }
    }

    .data-text {
      ul {
        display: flex;
        li {
          flex: 1;
          height: 0.5rem;
          font-size: 0.225rem;
          padding-top: 0.125rem;
          color: rgba(255, 255, 255, 0.7);
          text-align: center;
          line-height: 0.5rem;
        }
      }
    }
  }
  .map {
    height: 10.125rem;
    position: relative;
    .map1 {
      width: 6.475rem;
      height: 6.475rem;
      background: url(../images/map.png) no-repeat;
      background-size: 100%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0.3;
    }
    .map2 {
      width: 7.3rem;
      height: 7.3rem;
      background: url(../images/lbx.png) no-repeat;
      background-size: 100%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0.6;
      animation: rotate2 10s linear infinite;
    }
    .map3 {
      width: 7.075rem;
      height: 7.075rem;
      background: url(../images/jt.png) no-repeat;
      background-size: 100%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0.8;
      animation: rotate3 10s linear infinite;
    }
    .chart {
      position: relative;
      top: 0;
      left: 0;
      width: 100%;
      height: 10.125rem;
    }
    @keyframes rotate2 {
      from {
        /* 妈的这个问题终于解决了,使用translate居中的时候又加上动画,只要在动画中加上translate(-50%,-50%)就行了 */
        transform: translate(-50%, -50%) rotate(0deg);
      }
      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }
    @keyframes rotate3 {
      from {
        /* 妈的这个问题终于解决了,使用translate居中的时候又加上动画,只要在动画中加上translate(-50%,-50%)就行了 */
        transform: translate(-50%, -50%) rotate(360deg);
      }
      to {
        transform: translate(-50%, -50%) rotate(0deg);
      }
    }
  }
}
@media screen and (max-width: 1024px) {
  html {
    font-size: 42px !important;
  }
}
@media screen and (min-width: 1920px) {
  html {
    font-size: 80px !important;
  }
}
